<template>
  <a-drawer
    width="45%"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{height:'calc(100vh - 100px)',overflow:'auto'}"
    @close="cancel">
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="航空主运单编号" prop="mwbno">
            <a-input v-model="form.mwbno" placeholder="请输入航空主运单编号"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="航空分运单编号" prop="hwbno">
            <a-input v-model="form.hwbno" placeholder="请输入航空分运单编号"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="开箱员" prop="createdby">
            <a-input v-model="form.createdby" placeholder="请输入开箱员"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="品名" prop="cargoname">
            <a-input v-model="form.cargoname" placeholder="请输入品名"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="数量" prop="count">
            <a-input-number v-model="form.count" :min="0" style="width: 100%"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="单位" prop="unit">
            <a-input v-model="form.unit" placeholder="请输入单位"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="开包登记结果" prop="result">
            <a-input v-model="form.result" placeholder="请输入开包登记结果"/>
          </a-form-model-item>
        </a-col>
      </a-row>
      </a-spin>
       <div class="bottom-control">
              <a-space>
              <a-button @click="cancel">
                  取消
              </a-button>
              <a-button type="primary" @click="submitForm">
                  保存
              </a-button>
              </a-space>
       </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import VInternationalUnpackingEditForm from './VInternationalUnpackingForm'
export default {
  ...VInternationalUnpackingEditForm
}
</script>
